import { getQueryString } from '../common/common'

//获取链接上的tgid和token存入cookie中
//在需要的页面混入即可 
export default {
    created() {
        const uid = getQueryString('tgid')
        const token = getQueryString('token')
        if (uid && token) {
            this.$cookies.set('tgid', uid, '1d')
            this.$cookies.set('token', token, '1d')
        }
        console.log('login');
    },
}